<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
class Changelog extends DataMapper {

    var $prefix = "home_";

    var $validation = array(
        'version' => array(
            'label' => 'Version',
            'rules' => array('required', 'trim', 'alpha_dash_dot', 'max_length' => 8)
        ),
        'spanish_title' => array(
            'label' => 'Title in Spanish',
            'rules' => array('required', 'trim', 'max_length' => 100)
        ),
        'english_title' => array(
            'label' => 'Title in English',
            'rules' => array('required', 'trim', 'max_length' => 100)
        ),
        'spanish_changelog' => array(
            'label' => 'News in Spanish',
            'rules' => array('required', 'trim')
        ),
        'english_changelog' => array(
            'label' => 'News in English',
            'rules' => array('required', 'trim')
        ),
        'date' => array(
            'label' => 'Date',
            'rules' => array('required', 'trim', 'valid_date')
        )
    );

}